<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<child></child>
		</div>
		<template id="child">
			<div>
				<h1>这是一个子组件</h1>
				<slot><h1>测试</h1></slot>
			</div>
		</template>
		<script type="text/javascript">
			const child = {
				template:"#child"
			}
			new Vue({
				el:"#app",
				components:{
					child
				}
			})
		</script>
	</body>
</html>
